

<%
tb.uni.forEach(field=>{
%>
	
	/**
	* 根据唯一索引查询
	*/
	public <%-className%> findBy<%-under2Pascl(field.COLUMN_NAME)%>(<%-field.JavaType%> <%-under2Camel(field.COLUMN_NAME)%>){
		<%-className%> <%-tb.camel%> = <%-tb.camel%>Mapper.findBy<%-under2Pascl(field.COLUMN_NAME)%>(<%-under2Camel(field.COLUMN_NAME)%>);
		return <%-tb.camel%>;
	}

	/**
	* 根据唯一索引删除
	*/
	@Transactional
	public Boolean deleteBy<%-under2Pascl(field.COLUMN_NAME)%>(<%-field.JavaType%> <%-under2Camel(field.COLUMN_NAME)%>){
		return <%-tb.camel%>Mapper.deleteBy<%-under2Pascl(field.COLUMN_NAME)%>(<%-under2Camel(field.COLUMN_NAME)%>);
	}
<%
});
%>
<%
tb.pri.forEach(field=>{
%>

	/**
	* 根据主键删除
	*/
	@Transactional
	public Boolean deleteBy<%-under2Pascl(field.COLUMN_NAME)%>(<%-field.JavaType%> <%-under2Camel(field.COLUMN_NAME)%>){
		return <%-tb.camel%>Mapper.deleteBy<%-under2Pascl(field.COLUMN_NAME)%>(<%-under2Camel(field.COLUMN_NAME)%>);
	}
<%
});
%>

